"""
# -*- coding: utf-8 -*-
Time    : 2025/7/24 下午2:13
Author  : Micah
File    : test_fixture_twofixture-2.py
Function:
"""

import pytest


# fixture可以嵌套使用
@pytest.fixture()
def login(open_browser):
    print("\n登录")


@pytest.fixture(scope='module')
def open_browser():
    print("\n打开浏览器")


def test_search(open_browser, login):
    print("\n登录后搜索")


def test_view():
    print("\n不登录就查看")


def test_cart(login):
    print("\n登录后加购物车")
